package com.example.tooltip;

import com.example.tooltip.client.TooltipState;
import com.vaadin.annotations.JavaScript;
import com.vaadin.server.AbstractExtension;
import com.vaadin.ui.Link;
import com.vaadin.ui.TextField;

@SuppressWarnings("serial")
//@JavaScript({ "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js", "bootstrap.js", "bootstrap_connector.js" })
@JavaScript({ "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" })
public class TooltipExtension extends AbstractExtension {

    public void extend(TextField field) {

        getState().setDisplay("Test Success");
        
        super.extend(field);
    }
    
    @Override
    public TooltipState getState() {
        return (TooltipState) super.getState();
    }
}
